function FindProxyForURL(url, host) {
    var proxy = "PROXY 192.168.43.104:8080"; // 你的代理服务器地址和端口
    var direct = "DIRECT";

    // 嵌入的 JSON 数据
    var exceptions = {
        "domains": [
					"*.google.com",
					"*.google.com.*",
					"*.ent.com",
					"*.youtube.com",
					"*.googlevideo.com",
					"*.ytimg.com",
					"*.github.com",
					"*.github.io",
					"*.githubusercontent.com",
					"*.githubassets.com",
					"*.bingapis.com",
					"*.live.com",
					"*.stackoverflow.com",
					"*.wikipedia.org",
					"*.godaddy.com",
					"*.cloudflare.com",
					"*.twitter.com",
					"x.com",
					"grok.com",
                    "*.grok.com",
					"*.twimg.com",
					"*.docker.com",
					"*.facebook.com",
					"*.facebook.net",
					"*.fbcdn.net",
					"*.segment.io",
					"*.unpkg.com",
					"*.jsdelivr.com",
					"*.tv.apple.com",
					"*.instagram.com",
					"*.cdninstagram.com",
					"*.reddit.com",
					"*.redd.it",
					"*.whatsapp.com",
					"*.whatsapp.net",
                    "*greasyfork.org",
                    "*duckduckgo.com",
                    "*.microsoft.com",
                    "*.googleapis.com",
                    "*.telegram.org",
                    "supabase.com",
                    "*.supabase.com",
                    "*.pornhub.com",
                    "sleazyfork.org",
                    "avjb.com",
                    "*.haijiao.com",
                    "discord.gg",
                    "*.binance.com",
                    "*.okx.com"
        ],
        "ip_ranges": [
            {"ip": "192.168.1.0", "mask": "255.255.255.0"},
            {"ip": "10.0.0.0", "mask": "255.0.0.0"}
        ]
    };

    // 检查域名是否在 exceptions.domains 中
    for (var i = 0; i < exceptions.domains.length; i++) {
        if (shExpMatch(host, exceptions.domains[i])) {
            return proxy;
        }
    }

    // 默认直接访问
    return direct;
}